package com.example.yian.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@TableName("securityrisk_report")
@AllArgsConstructor // Generates a constructor with all arguments.
@NoArgsConstructor // Generates a no-argument constructor.
public class SecurityRiskReport {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    @TableField("report_id")
    private String reportId;
    public void setReportId(String reportId) {
        this.reportId = reportId;
    }

    public String getReportId() {
        return reportId;
    }

    @TableField("oos_url")
    private String oosurl;

    public void setOos_url(String oos_url) {
        this.oosurl = oos_url;
    }

    public String getOos_url() {
        return oosurl;
    }

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Timestamp createdAt;

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Timestamp updatedAt;

    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public Long getId() {
        return id;
    }

    public void setId(long l) {
        this.id = l;
    }

    public void setCreatedAt(Timestamp timestamp) {
        this.createdAt = timestamp;
    }
}
